class SitemapController < ApplicationController
  def sitemap
    @medias = Media.find(:all, :select => 'id, title, permalink, updated_at', :conditions => "media.deleted_at is null", :order => "comments.updated_at desc, media.updated_at desc", :include => 'comments')
    render :action => 'google_sitemap'
  end
end
